<!--{template common/header}-->
<!-- header start -->
<header class="header">
    <div class="nav">
		<div class="icon_edit y"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]" title="{lang send_threads}"><span class="none">{lang send_threads}</span></a></div>
        <a href="forum.php?forumlist=1" class="z"><img src="template/u179_u179waplt/touch/image/mobile/images/icon_back.png" /></a>
		<span class="category">
			<!--{if $subexists && $_G['page'] == 1}-->
			<span class="display name vm" href="#subname_list">
				<h2 class="tit"><!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}--></h2>
				<img src="template/u179_u179waplt/touch/image/mobile/images/icon_arrow_down.png">
			</span>
			<div id="subname_list" class="subname_list" display="true" style="display:none;">
				<ul>
				<!--{loop $sublist $sub}-->
				<li>
					<a href="forum.php?mod=forumdisplay&fid={$sub[fid]}">{$sub['name']}</a>
				</li>
				<!--{/loop}-->
				</ul>
			</div>
			<!--{else}-->
			<span class="name">
				<!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}-->
			</span>
			<!--{/if}-->
		</span>
    </div>
</header>
<!-- header end -->
<link rel="stylesheet" href="template/u179_u179waplt/css/index.css" type="text/css" media="all">
<link rel="stylesheet" href="template/u179_u179waplt/css/forumdisplay.css" type="text/css" media="all">
<link rel="stylesheet" href="template/u179_u179waplt/css/font-awesome.min.css" type="text/css" media="all">
<link rel="stylesheet" href="template/u179_u179waplt/css/style.css" type="text/css" media="all">
<script src="template/u179_u179waplt/js/TouchSlide.1.1.js"></script>
<br><br><br>
<!--{hook/viewthread_top_mobile}-->
<div class="postlist">
	<!--{hook/viewthread_posttop_mobile $postcount}-->

	<!--{eval $postcount = 0;}-->
	<!--{loop $postlist $post}-->
	<!--{eval $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);}-->
	<!--{hook/viewthread_posttop_mobile $postcount}-->


<!--{if $post['first']}-->
<div class="post-title-wrapper" id="detail_top_info_header">
<div class="" style="background-image: url(
{if $threadtable}
			<!--{loop $threadtable $value}-->
			<!--{eval $imagelistkey = getforumimg($value[aid], 0, 400, 200); }--> 
			$imagelistkey
			<!--{/loop}-->
			{else}
<!--{avatar($_G[forum_thread][authorid],small,true)}-->
{/if}

); background-size: 100%;background-position: center;height:133px;-webkit-filter: blur(15px);-moz-filter: blur(15px);-o-filter:blur(15px); -ms-filter: blur(15px);filter: blur(15px);"></div>

	<div class="user-info section-1px js-user-info"style="background-color: rgba(255,255,255,0.65);margin-top: -139px;">
		<div class="user-avatar">
			<!--{avatar($_G[forum_thread][authorid],big)}-->
		</div>
		<div class="name-wrap">
			<div style="height: 50px;">
			<div onclick="location.href = 'home.php?mod=space&uid=$_G[forum_thread][authorid]&do=profile'">
			<div class="name-section1">
				<span class="author user-nick user-nick-vipno">$post[author]</span>
			</div>
			<div class="user-sign">
				{if $post[signature]}$post[signature]{else}楼主很懒~什么都没留下{/if}
			</div>
			</div>
			<div class="post-title js-detail-title allow-copy">$_G[forum_thread][subject]</div>
		<div class="post-title-info">
			<div class="detail-from">
				<div id="detail_bar_name">
					<a href="<!--{if $_GET[fromguid] == 'hot'}-->forum.php?mod=guide&view=hot&page=$_GET[page]<!--{else}-->forum.php?mod=forumdisplay&fid=$_G[fid]&<!--{eval echo rawurldecode($_GET[extra]);}--><!--{/if}-->">$_G[forum][name]</a>
				</div>
			</div>
			<div class="time">
				$post[dateline]<!--{if $_G['forum']['ismoderator'] || $_G[uid] == $post['authorid']}--><a href="#moption_$post[pid]" class="popup blue"><span>{lang manage}</span></a><!--{/if}-->
			</div>
		</div>
		</div>
		<div class="arrow-right">
		</div>
	</div>
	
</div>
<!--{if $_G['forum']['ismoderator'] || $_G[uid] == $post['authorid']}-->
						<div id="moption_$post[pid]" popup="true" class="manage" style="display:none;">
							<!--{if !$_G['forum_thread']['special']}-->
							<input type="button" value="{lang edit}" class="redirect button" href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]<!--{if $_G[forum_thread][sortid]}--><!--{if $post[first]}-->&sortid={$_G[forum_thread][sortid]}<!--{/if}--><!--{/if}-->{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}&page=$page&nosubject=1">
							<!--{/if}-->
							<input type="button" value="{lang delete}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G[fid]}&moderate[]={$_G[tid]}&operation=delete&optgroup=3&from={$_G[tid]}">
							<input type="button" value="{lang close}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G[fid]}&moderate[]={$_G[tid]}&from={$_G[tid]}&optgroup=4">
							<input type="button" value="{lang admin_banpost}" class="dialog button" href="forum.php?mod=topicadmin&action=banpost&fid={$_G[fid]}&tid={$_G[tid]}&topiclist[]={$_G[forum_firstpid]}">
							<input type="button" value="{lang topicadmin_warn_add}" class="dialog button" href="forum.php?mod=topicadmin&action=warn&fid={$_G[fid]}&tid={$_G[tid]}&topiclist[]={$_G[forum_firstpid]}">
						</div>
<!--{/if}-->
<!--{else}-->

<!--{/if}-->


   <div class="cl" id="pid$post[pid]">
	<!--{if !$post['first']}-->
       <div class="u179list" href="#replybtn_$post[pid]"><div class="comment-wrapper">
	<div class="user-avatar"><!--{avatar($post[authorid], small)}--></div>
	<div class="name-wrap">
                <div class="name-section1">
                <span class="author user-nick user-nick-vipno"><a style="color: #777;" href="home.php?mod=space&uid=$post[authorid]&do=profile" class="blue">$post[author]</a></span>

                </span>
		{if $_G[forum_thread][authorid] == $post['authorid']}
		<span soda-bind-html="comment.ispostor|showPoster"><span data-lcontent="楼主" class="honour poster">楼主</span></span>
		{/if}
		
                <!--{if $_G['forum']['ismoderator'] || $_G[uid] == $post['authorid']}--><a href="#moption_$post[pid]" class="popup blue">{lang manage}</a><!--{/if}-->
                <span class="floor">
			<!--{if isset($post[isstick])}-->
				<img src ="{IMGDIR}/settop.png" title="{lang replystick}" class="vm" /> {lang from} {$post[number]}{$postnostick}
			<!--{elseif $post[number] == -1}-->
				{lang recommend_post}
			<!--{else}-->
				<!--{if !empty($postno[$post[number]])}-->$postno[$post[number]]<!--{else}-->{$post[number]}{$postno[0]}<!--{/if}-->
			<!--{/if}-->
		</span>

                
                
                </div>
            </div>
	<!--{else}-->
	<div class="post-wrapper">
<!--{/if}-->
		   <!--{if !$post['first']}-->
					<!--{if $_G['forum']['ismoderator'] || $_G[uid] == $post['authorid']}-->
					<!-- manage start -->
					<!--{if $post[first]}-->
						<a href="#moption_$post[pid]" class="popup blue">{lang manage}</a>
						<div id="moption_$post[pid]" popup="true" class="manage" style="display:none;">
							<!--{if !$_G['forum_thread']['special']}-->
							<input type="button" value="{lang edit}" class="redirect button" href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]<!--{if $_G[forum_thread][sortid]}--><!--{if $post[first]}-->&sortid={$_G[forum_thread][sortid]}<!--{/if}--><!--{/if}-->{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}&page=$page&nosubject=1">
							<!--{/if}-->
							<input type="button" value="{lang delete}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G[fid]}&moderate[]={$_G[tid]}&operation=delete&optgroup=3&from={$_G[tid]}">
							<input type="button" value="{lang close}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G[fid]}&moderate[]={$_G[tid]}&from={$_G[tid]}&optgroup=4">
							<input type="button" value="{lang admin_banpost}" class="dialog button" href="forum.php?mod=topicadmin&action=banpost&fid={$_G[fid]}&tid={$_G[tid]}&topiclist[]={$_G[forum_firstpid]}">
							<input type="button" value="{lang topicadmin_warn_add}" class="dialog button" href="forum.php?mod=topicadmin&action=warn&fid={$_G[fid]}&tid={$_G[tid]}&topiclist[]={$_G[forum_firstpid]}">
						</div>
					<!--{else}-->
						
						<div id="moption_$post[pid]" popup="true" class="manage" style="display:none;">
							<input type="button" value="{lang edit}" class="redirect button" href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}&page=$page&nosubject=1">
							<!--{if $_G['group']['allowdelpost']}--><input type="button" value="{lang modmenu_deletepost}" class="dialog button" href="forum.php?mod=topicadmin&action=delpost&fid={$_G[fid]}&tid={$_G[tid]}&operation=&optgroup=&page=&topiclist[]={$post[pid]}"><!--{/if}-->
							<!--{if $_G['group']['allowbanpost']}--><input type="button" value="{lang modmenu_banpost}" class="dialog button" href="forum.php?mod=topicadmin&action=banpost&fid={$_G[fid]}&tid={$_G[tid]}&operation=&optgroup=&page=&topiclist[]={$post[pid]}"><!--{/if}-->
							<!--{if $_G['group']['allowwarnpost']}--><input type="button" value="{lang modmenu_warn}" class="dialog button" href="forum.php?mod=topicadmin&action=warn&fid={$_G[fid]}&tid={$_G[tid]}&operation=&optgroup=&page=&topiclist[]={$post[pid]}"><!--{/if}-->
						</div>
					<!--{/if}-->
					<!-- manage end -->
					<!--{/if}-->
					<!--{if $post[first]}-->
					<a href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]" class="favbtn blue" <!--{if $_G[forum][ismoderator]}-->style="margin-right:10px;"<!--{/if}-->>{lang favorite}</a>
					<!--{/if}-->
		<!--{/if}-->
			<div class="message content-wrapper">
			<div class="content allow-copy">
                	<!--{if $post['warned']}-->
                        <span class="grey quote">{lang warn_get}</span>
                    <!--{/if}-->
                    <!--{if !$post['first'] && !empty($post[subject])}-->
                        <h2><strong>$post[subject]</strong></h2>
                    <!--{/if}-->
                    <!--{if $_G['adminid'] != 1 && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || $post['status'] == -1 || $post['memberstatus'])}-->
                        <div class="grey quote">{lang message_banned}</div>
                    <!--{elseif $_G['adminid'] != 1 && $post['status'] & 1}-->
                        <div class="grey quote">{lang message_single_banned}</div>
                    <!--{elseif $needhiddenreply}-->
                        <div class="grey quote">{lang message_ishidden_hiddenreplies}</div>
                    <!--{elseif $post['first'] && $_G['forum_threadpay']}-->
						<!--{template forum/viewthread_pay}-->
					<!--{else}-->

                    	<!--{if $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
                            <div class="grey quote">{lang admin_message_banned}</div>
                        <!--{elseif $post['status'] & 1}-->
                            <div class="grey quote">{lang admin_message_single_banned}</div>
                        <!--{/if}-->
                        <!--{if $_G['forum_thread']['price'] > 0 && $_G['forum_thread']['special'] == 0}-->
                            {lang pay_threads}: <strong>$_G[forum_thread][price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]} </strong> <a href="forum.php?mod=misc&action=viewpayments&tid=$_G[tid]" >{lang pay_view}</a>
                        <!--{/if}-->

                        <!--{if $post['first'] && $threadsort && $threadsortshow}-->
                        	<!--{if $threadsortshow['optionlist'] && !($post['status'] & 1) && !$_G['forum_threadpay']}-->
                                <!--{if $threadsortshow['optionlist'] == 'expire'}-->
                                    {lang has_expired}
                                <!--{else}-->
                                    <div class="box_ex2 viewsort">
                                        <h4>$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]</h4>
                                    <!--{loop $threadsortshow['optionlist'] $option}-->
                                        <!--{if $option['type'] != 'info'}-->
                                            $option[title]: <!--{if $option['value']}-->$option[value] $option[unit]<!--{else}--><span class="grey">--</span><!--{/if}--><br />
                                        <!--{/if}-->
                                    <!--{/loop}-->
                                    </div>
                                <!--{/if}-->
                            <!--{/if}-->
                        <!--{/if}-->
                        <!--{if $post['first']}-->
                            <!--{if !$_G[forum_thread][special]}-->
                                $post[message]
                            <!--{elseif $_G[forum_thread][special] == 1}-->
                                <!--{template forum/viewthread_poll}-->
                            <!--{elseif $_G[forum_thread][special] == 2}-->
                                <!--{template forum/viewthread_trade}-->
                            <!--{elseif $_G[forum_thread][special] == 3}-->
                                <!--{template forum/viewthread_reward}-->
                            <!--{elseif $_G[forum_thread][special] == 4}-->
                                <!--{template forum/viewthread_activity}-->
                            <!--{elseif $_G[forum_thread][special] == 5}-->
                                <!--{template forum/viewthread_debate}-->
                            <!--{elseif $threadplughtml}-->
                                $threadplughtml
                                $post[message]
                            <!--{else}-->
                            	$post[message]
                            <!--{/if}-->
                        <!--{else}-->
                            $post[message]
                        <!--{/if}-->

					<!--{/if}-->
			</div></div>
			<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
			<!--{if $post['attachment']}-->
               <div class="grey quote">
               {lang attachment}: <em><!--{if $_G['uid']}-->{lang attach_nopermission}<!--{else}-->{lang attach_nopermission_login}<!--{/if}--></em>
               </div>
            <!--{elseif $post['imagelist'] || $post['attachlist']}-->
               <!--{if $post['imagelist']}-->
				<!--{if count($post['imagelist']) == 1}-->
				<ul class="img_one">{echo showattach($post, 1)}</ul>
				<!--{else}-->
				<ul class="img_list cl vm">{echo showattach($post, 1)}</ul>
				<!--{/if}-->
				<!--{/if}-->
                <!--{if $post['attachlist']}-->
				<ul>{echo showattach($post)}</ul>
				<!--{/if}-->
			<!--{/if}-->
			<!--{/if}-->
			<!--{if $_G[uid] && $allowpostreply && !$post[first]}-->
			<div id="replybtn_$post[pid]" class="replybtn" display="true" style="display:none;position:absolute;right:0px;top:5px;">
				<input type="button" class="redirect button" href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&repquote=$post[pid]&extra=$_GET[extra]&page=$page" value="{lang reply}">
			</div>
			<!--{/if}-->
<!--{if !$post['first']}-->
<div class="actions">
	<span class="btn-action time">$post[dateline]</span>
	
	<a href="forum.php?mod=post&amp;action=reply&amp;fid=$post[fid]&amp;tid=$post[tid]&amp;repquote=$post[pid]&amp;extra=page%3D1&amp;page=$page" class=""><span class="btn-action reply"></span></a>
	<!--{if !empty($_G['setting']['recommendthread']['addtext'])}-->	<a href="forum.php?mod=misc&action=postreview&do=support&tid=$_G[tid]&pid=$post[pid]&hash={FORMHASH}" class="dialog"><span class="js-btn-action btn-action like " data-like="{$post[postreview][support]}"><span id="support$post[pid]">{$post[postreview][support]}</span></a>
	<!--{/if}--></div>
<!--{/if}-->
       </div></div>
   </div>
<!--{if $post['first']}-->

<!--{/if}-->
<!--{if $post['first']}-->
<div class="btn-comment-operate show-inturn section-1px{if !$_GET['ordertype']} reverse{/if}" style="display: block;">
	<div class="leftside-all-icon all"></div><span>全部评论</span>
{if $_G[forum_thread][replies] != 0}
<!--{if $_GET['ordertype']}-->
<a id="btnShowInturn" href="forum.php?mod=viewthread&tid=$_G[tid]" style="display: block;">倒序查看</a>
{else}
<a id="btnShowInturn" href="forum.php?mod=viewthread&tid=$_G[tid]&extra=page&ordertype=1" style="display: block;">顺序查看</a>
{/if}
{/if}
</div>
<!--{/if}-->
{if $_G[forum_thread][replies] == 0}
<div class="empty-comment" style="display: block;">暂无评论，快来抢沙发</div>
{/if}
   <!--{hook/viewthread_postbottom_mobile $postcount}-->
   <!--{eval $postcount++;}-->
   <!--{/loop}-->


</div>
<div class="zan_reply" id="zan_reply" style="">
<a class="bottom_commit_btn btn_zan dialog" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G[tid]&hash={FORMHASH}" >

<span class="btn_zan_icon"></span>
<span class="btn_zan_text">赞{if $_G[forum_thread][recommend_add]}({$_G[forum_thread][recommend_add]}){/if}</span>
</a>
<a class="bottom_commit_btn btn_zan " href="forum.php?mod=post&amp;action=reply&amp;fid=$post[fid]&amp;tid=$post[tid]&amp;extra=page%3D1&amp;page=$page" >
<span class="btn_zan_icon same_view_icon"></span>
<span class="btn_zan_text">回复{if $_G[forum_thread][replies]}({$_G[forum_thread][replies]}){/if}</span>
</a>
</div>
<!-- main postlist end -->

<center>$multipage</center>

<!--{hook/viewthread_bottom_mobile}-->

<script type="text/javascript">
	$('.favbtn').on('click', function() {
		var obj = $(this);
		$.ajax({
			type:'POST',
			url:obj.attr('href') + '&handlekey=favbtn&inajax=1',
			data:{'favoritesubmit':'true', 'formhash':'{FORMHASH}'},
			dataType:'xml',
		})
		.success(function(s) {
			popup.open(s.lastChild.firstChild.nodeValue);
			evalscript(s.lastChild.firstChild.nodeValue);
		})
		.error(function() {
			window.location.href = obj.attr('href');
			popup.close();
		});
		return false;
	});
</script>



<!--{template common/footer}-->
